import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EQixingShenhunOper
    
    export  class EQixingShenhunOper
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EQixingShenhunOper
        {
            return new EQixingShenhunOper(arg1);
        }

        public static __read(arg1: SerializeStream): EQixingShenhunOper
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 2) 
            {
                throw new MarshalException();
            }
            return EQixingShenhunOper.convert(loc1);
        }

        public static /* const */_EQixingShenhunActivate: int=0;

        public static /* const */_EQixingShenhunUpgrade: int=1;

        public /* var */__value: int;
    }
